<?php
	/**
	Login page
	
	@author Joseph Fehrman
	*/

	if(isset($_COOKIE['username'])){
		if($_COOKIE['username'] != null && $_COOKIE['username'] != ""){
			header("Location: ./index.php");
		}	
	}
?>
<html>
	<head>
		<title>
			Login
		</title>
	</head>
	<body>
		<form action="./process/processLogin.php" method="POST">
			<h1>Login</h1>
			<label class="username_label">Username:</label><input type="text" id="username_input" name="username" /><br />
			<label class="password_label">Password:</label><input type="password" id="password_input" name="password" /><br />
			<input type="submit" />
		</form>
		<br />
		<a href="./register.html">Register</a>
	</body>
</html>